package com.carpark.ejb.DAO;

import com.carpark.ejb.Model.ClientsModel;
import com.carpark.ejb.Model.ParksModel;
import java.util.Date;
import java.util.List;
import javax.ejb.Local;
import javax.ejb.Remote;

/**
 *
 * @author Sawior
 */
@Local
public interface ParksDAO {

    public List<ParksModel> getAllParks();

    public int getParksSize();

    public ParksModel getParksById(Integer id);

    public List<ParksModel> getParksByParkDate(Date parkDate);

    public List<ParksModel> getParksByClient(ClientsModel cl);

    public List<ParksModel> getParksByClientAndType(ClientsModel cl, String type);

    public List<ParksModel> getParksByType(String type);

    public void addPark(ParksModel park);

    public void updatePark(ParksModel park);

    public void removePark(Integer id);

    public int getByParkDateSize(Date parkDate);
}
